Class symantec.itools.db.beans.dcnav.NodeItem
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class symantec.itools.db.beans.dcnav.NodeItem

Object
   |
   +----symantec.itools.db.beans.dcnav.NodeItem

public class NodeItem
extends Object
implements Serializable

Version:
1.0 08/23/98
Author:
Hristo Tonev

Variable Index

 o collapsedIcon
The icon that will be used by the renderer when the tree node is collapsed.
 o displayValue
The value that will be displayed in the tree view
 o expandedIcon
The icon that will be used by the renderer when the tree node is expanded.

Constructor Index

 o symantec.itools.db.beans.dcnav.NodeItem(String, Icon)
Constructor for leaves
 o symantec.itools.db.beans.dcnav.NodeItem(String, Icon, Icon)
Constructor

Method Index

 o getCollapsedIcon()
 o getDisplayValue()
 o getExpandedIcon()
 o setCollapsedIcon(Icon)
 o setDisplayValue(String)
 o setExpandedIcon(Icon)
 o toString()
This method is called to display the node value.

Variables

 o collapsedIcon
protected com.sun.java.swing.Icon collapsedIcon
The icon that will be used by the renderer when the tree node is collapsed.

 o displayValue
protected java.lang.String displayValue
The value that will be displayed in the tree view

 o expandedIcon
protected com.sun.java.swing.Icon expandedIcon
The icon that will be used by the renderer when the tree node is expanded.

Constructors

 o NodeItem
public NodeItem(String displayValue,
                Icon icon)
Constructor for leaves

Parameters:
displayValue - is the string that will be displayed
icon - is the icon that will be used when the node is collapsed AND expanded (usually for a leaf)
 o NodeItem
public NodeItem(String displayValue,
                Icon collapsedIcon,
                Icon expandedIcon)
Constructor

Parameters:
displayValue - is the string that will be displayed
collapsedIcon - is the icon that will be used when the node is collapsed
expandedIcon - is the icon that will be used when the node is expanded

Methods

 o getCollapsedIcon
public com.sun.java.swing.Icon getCollapsedIcon()
 o getDisplayValue
public java.lang.String getDisplayValue()
 o getExpandedIcon
public com.sun.java.swing.Icon getExpandedIcon()
 o setCollapsedIcon
public void setCollapsedIcon(Icon icon)
 o setDisplayValue
public void setDisplayValue(String newDisplayValue)
 o setExpandedIcon
public void setExpandedIcon(Icon icon)
 o toString
public java.lang.String toString()
This method is called to display the node value.

Returns:
a string representation of the object.
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index